-- GENERATED SPELL FOR [Iceshard Elemental] --


function spell0_24228(pUnit, Event) --@Ice Spike,n/a--
pUnit:FullCastSpellOnTarget(50094,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24228', 2000, 1)
end

function Sorts_24228(pUnit, Event)
local choix_sorts_24228 = math.random(0, 0)
if choix_sorts_24228 == 0 then
pUnit:RegisterEvent('spell0_24228', 1, 1)
end
end

function mob24228_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24228', math.random(1500, 3000), 1)
end

function mob24228_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24228_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24228_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24228, 1, 'mob24228_Action')
RegisterUnitEvent(24228, 2, 'mob24228_Leave')
RegisterUnitEvent(24228, 3, 'mob24228_Kill')
RegisterUnitEvent(24228, 4, 'mob24228_Die')
